<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/util.tld" prefix="myutil" %>
<!DOCTYPE HTML>
<html>
  <head>
    <title>商品管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<link href = "/ecp/resources/css/default/base.css" rel = "stylesheet" type = "text/css"/>
	<link href = "/ecp/resources/css/uploadify.css" rel = "stylesheet" type = "text/css"/>
    <script type="text/javascript" src="/ecp/resources/js/jquery-1.8.1.js"></script>
    <script type="text/javascript" src="/ecp/resources/js/tydic.js"></script>
    <script type="text/javascript" src="/ecp/resources/js/jquery.uploadify.min.js"></script>
    <script type = "text/javascript">
         jQuery(function($) {
			dicPath = '/ecp/resources/css/default/images/';
	   
	   
	   //
	   
	    var cfg = {
					url : '/ecp/backstage/goods/queryGoodsImag.do?goodsId=${param.goodsId}',//分页请求url设置
					head : [//表头设置
					{dis:'商品图片', name:'img', width:'8%', align:'left',
					 link : {fun : function(data) {  }}},
					{dis:'创建时间', name:'addtime', width:'8%', align:'center', sort : {style : false}},
					{dis:'创建人', name:'addperson', width:'8%', align:'center'}
					]
					}
			
			
   // 设置上传
    $("#file_upload").uploadify({
        'auto'     : false,
        'multi'    : true,
        'swf'      : '/ecp/resources/flash/uploadify.swf',
        'uploader' : '/ecp/backstage/test/upload.do',
        'method'   : 'post',
        'formData' : {'someKey' : 'someValue','someOtherKey' : 1},
        'buttonText' : '选择文件',
        'fileTypeDesc' : 'image Files',
        'fileTypeExts' : '*.gif; *.png; *.jpg',
        'fileSizeLimit' : '10MB',
        'onUploadSuccess' : function(file, data, response) {
      //     alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);
           // $("#logo", window.parent.document).val($("#logo", window.parent.document).val()+"#"+file.name);
         //   $("#imgsTd", window.parent.document).prepend("<div> <a  ondblclick='javascript:$(this).parent().empty();'>"+file.name+"</a><input name='imgs' type='hidden'   value='"+file.name+"'></div>"); 
          
        },
        'onCancel' : function(file) {
             
        } 
        });
	
	
	   //var table = $('#datatable').dicTable(cfg);
		});
		
		
		
	</script>
	 
  </head>
  <body>
	  <div class = "p10">
            <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                    <td class = "ico21">&nbsp;</td>
                    <td class = "tb">订单列表</td>
                    <td class = "ico4">&nbsp;</td>
                </tr>
            </table>
            <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                    <td class = "dataGridtool">
                        <table border = "0" cellspacing = "0" cellpadding = "0" class = "fr">
                            <tr>
                                <td class = "tools3"><a href = "#">删除</a></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <div id="datatable"></div>
            
            <div>
				<input id="file_upload" type="file" name="file_upload" >
				<p><a href="javascript:$('#file_upload').uploadify('upload','*')">Upload Files</a></p>
            </div>
        </div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0"
		class="mT5">
		<tr>
			<td height="30" align="center">
				<input type="button" value="关闭" class="btn1" onclick="parent.win.close();"/>
			</td>
		</tr>
	</table>
  </body>
</html>